<?php
/**
 * Created by PhpStorm.
 * User: zhangrongxiang
 * Date: 2017/6/11
 * Time: 下午2:50
 */

echo zend_version() . PHP_EOL;

//echo zend_optimizer_version().PHP_EOL;

//echo phpcredits();

echo phpcredits(CREDITS_GROUP);
echo phpcredits(CREDITS_GENERAL);
echo phpinfo(INFO_GENERAL);
echo PHP_EOL;

echo assert_options(ASSERT_ACTIVE) . PHP_EOL;
echo assert_options(ASSERT_CALLBACK) . PHP_EOL;

assert_options(ASSERT_ACTIVE,true);
assert_options(ASSERT_CALLBACK, function () {
    echo __FUNCTION__;
});

assert(is_null(null), 'is_null(1)');


echo "***********************************************************************************************\n";
echo extension_loaded('ftp').PHP_EOL;
$a = getcwd();


gc_enable();
gc_disable();
if (gc_enabled()){
    gc_disable();
    echo 'gc_disable...'.PHP_EOL;
}else{
    echo 'gc_enable...'.PHP_EOL;
}
echo gc_collect_cycles().PHP_EOL;

//gc_mem_caches();
//var_dump(ini_get_all('mbstring'));

echo get_cfg_var('error_reporting').PHP_EOL;

echo get_current_user().PHP_EOL;

//var_dump(get_defined_constants());
//var_dump(get_extension_funcs('xml'));

echo get_include_path().PHP_EOL;
//include '1.php';
//var_dump(get_included_files());

//var_dump(get_loaded_extensions());

echo get_magic_quotes_gpc().PHP_EOL;
echo get_magic_quotes_runtime().PHP_EOL;


echo get_resource_type(fopen('1.php','a')).PHP_EOL;
echo get_resource_type(curl_init()).PHP_EOL;

echo getlastmod().PHP_EOL;

echo getmygid().PHP_EOL;
echo getmyinode().PHP_EOL;
echo getmypid().PHP_EOL;
echo getmyuid().PHP_EOL;

//var_dump(getopt('f:hp:'));


var_dump(getrusage());

echo php_ini_loaded_file().PHP_EOL;
echo php_ini_scanned_files().PHP_EOL;

echo php_sapi_name().PHP_EOL;
echo php_uname().PHP_EOL;
